package com.eairlv.share.auto.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eairlv.share.auto.entity.po.enums.ShareWay;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lv
 * @create 2018-07-23 11:26
 * @desc
 **/
@Data
@Builder
@TableName(value = "share_table")
@NoArgsConstructor
@AllArgsConstructor
public class ShareTablePO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer checkInterval;

    private Long lastCheckTime;

    private String templateTableName;

    private String templatePartitionField;

    private ShareWay shareTableWay;

    private Integer shareTableInterval;

    private Integer shareTableAdvance;

    private Long shareTableBegin;

    private ShareWay sharePartitionWay;

    private Integer sharePartitionInterval;

    private Long createTime;

    private Long modifyTime;

    @TableLogic
    private Boolean deleteFlag;
}
